<{include file="header.htm"}>

<script src="<{$tpl_img}>images/common.js" type="text/javascript"></script>
<script src="<{$tpl_img}>images/calendar2.js" type="text/javascript"></script>

	<div class="container">
		<div class="hastabmenu">
			<ul class="tabmenu">
			
				<li id="adduserbtn"><a href="#" >新增权限</a></li>
			</ul>

			<div id="srchuserdiv" class="tabcontentcur">
				<form action="<{spUrl c=right a=add}>" method="post">
				<table width="100%">
					<tr>
						<td>代码:</td>
						<td><input type="text" name="rightsnum" value="" class="txt" maxlength="10" /></td>
                        <td>描述:</td>
						<td><input type="text" name="description" value="" class="txt" /></td>
						<td>群组：</td>
                        <td><select name="groupid"><{html_options options=$group_options}></select></td>
						
					</tr>
                    	<td>类型:</td>
						<td><select name="allow">
						  <option value="1">允许</option>
						  <option value="0">禁止</option>
						</select></td>
                   		<td>起始时:</td>
						<td><input type="text" name="begin" value="" onclick="showcalendar();" class="txt" /></td>
                        <td>结束时:</td>
						<td><input type="text" name="end" value="" onclick="showcalendar();" class="txt" /></td>
						<td rowspan="2"><input type="submit" value="提交" class="btn" /></td>
                    <tr>
                    </tr>
				</table>
				</form>
			</div>
		</div>

<br />
		<h3>权限列表</h3>
		<div class="mainbox">
				<form action="<{spUrl c=right a=delete}>" onsubmit="return confirm('确认删除这些权限吗？');" method="post">
				<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
					<tr>
						<th><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">删除？</label></th>
						<th>权限代码</th>
                        <th>描述</th>
						<th>限制群组</th>
						<th>限制类型</th>
						<th>编辑</th>
					</tr>
					<{section name=i loop=$rightlist}>
						<tr height="60px">
							<td class="option"><input type="checkbox" name="delete[]" value="<{$rightlist[i].rightid}>" class="checkbox" /></td>
							<td><strong><{$rightlist[i].rightsnum}></strong></td>
                            <td><{$rightlist[i].description}></td>
							<td><{$rightlist[i].groupid}></td>
							<td><{if $rightlist[i].allow == "1"}>允许<{else}>禁止<{/if}></td>
							<td><a href="<{spUrl c=right a=edit_page rightid=$rightlist[i].rightid}>">编辑</a></td>
						</tr>
					<{/section}>
					<tr class="nobg">
						<td><input type="submit" value="删除所选权限" class="btn" /></td>
						<td class="tdpage" colspan="6"></td>
					</tr>
				</table>
				</form>
                
		</div>
	</div>

